package com.thrsdk.model.data;


import android.os.Parcel;
import android.os.Parcelable;

public class PayInfo implements Parcelable {
    private String servername;    //区服名称
    private String serverid;    //区服id
    private String orderid;        //订单id
    private String amount;        //金额
    private String extrainfo;    //扩展信息
    private String productName;    //支付描述
    private String rolename;//角色名
    private String rolelevel;//角色id角色等级
    private String roleid;//
    private String productid;//可选 产品计费点ID
    private String paySign; //CP服务端支付签名
    private String timestamp; //CP服务端支付签名时间戳

    public String getPaySign() {
        return paySign;
    }

    public void setPaySign(String paySign) {
        this.paySign = paySign;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getServername() {
        return servername;
    }

    public void setServername(String servername) {
        this.servername = servername;
    }

    public String getServerid() {
        return serverid;
    }

    public void setServerid(String serverid) {
        this.serverid = serverid;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getExtrainfo() {
        return extrainfo;
    }

    public void setExtrainfo(String extrainfo) {
        this.extrainfo = extrainfo;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getUid() {
        return "";
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRolelevel() {
        return rolelevel;
    }

    public void setRolelevel(String rolelevel) {
        this.rolelevel = rolelevel;
    }

    public String getRoleid() {
        return roleid;
    }

    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public static Creator<PayInfo> getCreator() {
        return CREATOR;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        // TODO Auto-generated method stub
        parcel.writeString(serverid);
        parcel.writeString(orderid);
        parcel.writeString(amount);
        parcel.writeString(extrainfo);
        parcel.writeString(productName);
        parcel.writeString(rolename);
        parcel.writeString(rolelevel);
        parcel.writeString(roleid);
        parcel.writeString(productid);
        parcel.writeString(servername);
        parcel.writeString(paySign);
        parcel.writeString(timestamp);

    }

    public static final Creator<PayInfo> CREATOR = new Creator<PayInfo>() {

        @Override
        public PayInfo createFromParcel(Parcel source) {
            // TODO Auto-generated method stub
            PayInfo payInfo = new PayInfo();
            payInfo.serverid = source.readString();
            payInfo.orderid = source.readString();
            payInfo.amount = source.readString();
            payInfo.extrainfo = source.readString();
            payInfo.productName = source.readString();
            payInfo.rolename = source.readString();
            payInfo.rolelevel = source.readString();
            payInfo.roleid = source.readString();
            payInfo.productid = source.readString();
            payInfo.servername = source.readString();
            payInfo.paySign = source.readString();
            payInfo.timestamp = source.readString();

            return payInfo;
        }

        @Override
        public PayInfo[] newArray(int size) {
            // TODO Auto-generated method stub
            return new PayInfo[size];
        }
    };

    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }
}
